package com.ncs.leisure.beans.business.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ncs.leisure.beans.business.dao.BeansMapTemplateDAO;
import com.ncs.leisure.beans.business.dao.po.BeansMapTemplate;
import com.ncs.leisure.overall.business.dao.MemberDAO;

public class BeansMapTemplateDAOImpl extends HibernateDaoSupport implements BeansMapTemplateDAO{

	public List findByUser(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	public void delete(Object obj) {
		// TODO Auto-generated method stub
		
	}

	public List findAll() {
		
		return getHibernateTemplate().loadAll(BeansMapTemplate.class);
		
	}

	public List findById(Integer id) {
		
		List list = getHibernateTemplate().find("from BeansMapTemplate bmt where bmt.id=?",id);

		return list;	

	}

	public void insert(Object obj) {
		// TODO Auto-generated method stub
		
	}

	public void update(Object obj) {
		// TODO Auto-generated method stub
		
	}

}
